/*
Copyright (C) Ariff Ehsan, Abdul Hadi Fikri

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/*  Author : Abdul Hadi Fikri
 *  Date   : June 24, 2009
 */


#include <system.h>
#include <button/button0.h>

/**
*CODE DESCRIPTION
*
*--Component in call section are function name which this module use from other module in order to complete its
*--tasks, event in turn is any event siganalled by the other module(s).  
*
*Component{
*	call{
*		BUTTON-> BUTTON0_init();
*		BUTTON-> BUTTON1_init();
*		SYSTEM-> SET_BIT(REG NAME, REG BIT NAME);
*		SYSTEM-> CLR_BIT(REG NAME, REG BIT NAME);
*	}
*	event{
*		void BUTTON0_pushed(void)   <- BUTTON
*		void BUTTON0_released(void) <- BUTTON
*	}
*}
*
**
*Data Field:
*/

/**
*Function Field:
*/

void APP_booted(){
	BUTTON0_init();	
	DDRC = 0xFF;
}

void BUTTON0_pushed(void){
	PORTC++;
}
void BUTTON0_released(void){
}

